package com.mkl.ttxt.remote.service.impl;

import com.mkl.ttxt.common.bo.PageBean;
import com.mkl.ttxt.common.bo.PageResponce;
import com.mkl.ttxt.common.exception.BusinessException;
import com.mkl.ttxt.remote.bo.TtxtButton;
import com.mkl.ttxt.remote.bo.TtxtMenu;
import com.mkl.ttxt.remote.bo.TtxtUser;
import com.mkl.ttxt.remote.dao.ITtxtUserDao;
import com.mkl.ttxt.remote.service.ITtxtUserService;
import io.netty.util.internal.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class TtxtUserServiceimpl implements ITtxtUserService {

    @Autowired
    private ITtxtUserDao ttxtUserDao;

    @Override
    public TtxtUser login(TtxtUser ttxtUser) {
        return ttxtUserDao.login(ttxtUser);
    }

    @Override
    public TtxtUser findUserById(Integer userId) {
        return ttxtUserDao.findUserById(userId);
    }

    @Override
    public void updateUserPassword(Integer userId, String password) {
        ttxtUserDao.updateUserPassword(userId, password);
    }

}
